package com.idanchuang.component.businesslog.es.config;

/**
 * 客户端配置
 *
 * @author yjy
 * 2020-02-21 15:54
 */
public class RestClientConfigBean {

    /** connectTimeout */
    private int connectTimeout = 1000;
    /** socketTimeout */
    private int socketTimeout = 30000;
    /** keepAliveTime */
    private long keepAliveTime = 30000L;

    public int getConnectTimeout() {
        return connectTimeout;
    }

    public long getKeepAliveTime() {
        return keepAliveTime;
    }

    public void setKeepAliveTime(long keepAliveTime) {
        this.keepAliveTime = keepAliveTime;
    }

    public void setConnectTimeout(int connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    public int getSocketTimeout() {
        return socketTimeout;
    }

    public void setSocketTimeout(int socketTimeout) {
        this.socketTimeout = socketTimeout;
    }

    @Override
    public String toString() {
        return "RestClientConfigBean{" +
                "connectTimeout=" + connectTimeout +
                ", socketTimeout=" + socketTimeout +
                ", keepAliveTime=" + keepAliveTime +
                '}';
    }
}
